# -*- coding: utf-8 -*-
import os

class Config:
    SECRET_KEY = os.getenv('SECRET_KEY', 'your-secret-key')
    SWAGGER = {
        'title': '知识库问答接口API 1.0.2',
        'uiversion': 3
    }

    # 对接LINK搜索(集成了谷歌搜索,bing搜索)
    LINK_SEARCH_URL = "https://api.link-ai.tech/v1/chat/completions"
    LINK_SEARCH_KEY = "Bearer Link_uL2zojj7H5glX0xQbcDXmVAzdvES5QPfdIISrRBXNs"

    # 小智大模型地址
    XIAOZHI_URL = "http://175.6.21.106:32082/v1/chat/completions"

    # 必应搜索
    BING_SEARCH_URL = "https://cn.bing.com/search"

    # 文件库地址
    FILE_PATH = r"D:\PythonFolder\wechatpydemo\AI_api_project\resource\holdFile"
    FILE_SCRATCH_PATH = r"D:\PythonFolder\wechatpydemo\AI_api_project\resource\scratchFile"

    # 自动化操作目录
    AUTO_OPERATE_PATH = r"D:\PythonFolder\wechatpydemo\AI_api_project\app\tool\scriptWX\static"


    # 索引文件切分
    resource_path = "holdFile"
    resource_scratch_path = "scratchFile"
    resource_local_path = r'D:\PythonFolder\wechatpydemo\AI_api_project\resource\holdFile'
    resource_local_scratch_path = r'D:\PythonFolder\wechatpydemo\AI_api_project\resource\scratchFile'
    indexdir_path = r"D:\PythonFolder\wechatpydemo\AI_api_project\resource\indexdir_hold"
    indexdir_scratch_path=r"D:\PythonFolder\wechatpydemo\AI_api_project\resource\indexdir_scratch"

    # 流程相关表格存储位置
    PROCESS_PATH = r"D:\PythonFolder\wechatpydemo\AI_api_project\resource\processtable"

    # # 文件库地址
    # FILE_PATH = "/opt/AI_api_project/resource/holdFile"
    # FILE_SCRATCH_PATH = "/opt/AI_api_project/resource/scratchFile"
    #
    # # 自动化操作目录
    # AUTO_OPERATE_PATH = "/opt/AI_api_project/app/tool/scriptWX/static"
    #
    # # 索引文件切分
    # resource_path = "holdFile"
    # resource_scratch_path = "scratchFile"
    # resource_local_path = "/opt/AI_api_project/resource/holdFile"
    # resource_local_scratch_path = "/opt/AI_api_project/resource/scratchFile"
    # indexdir_path = "/opt/AI_api_project/resource/indexdir_hold"
    # indexdir_scratch_path = "/opt/AI_api_project/resource/indexdir_scratch"

    # Bochaai
    BOCHAAI_KEY = "sk-50bced54118d4f4eb46e8df13375a68e"

    # ai操作识别目录表
    OPERATE_PATH = r"D:\PythonFolder\wechatpydemo\AI_api_project\app\tool\soul\static"